import { FormSchema } from '/@/components/Table';
import { getDepts as getAllDept } from '/@/api/org/dept';

/**
 * 查询条件
*/
export const formSchema: FormSchema[] = [

  {
    field: 'deptId',
    label: '部门',
    component: 'ApiSelect',
    componentProps: {
      api: getAllDept,
      showSearch: true, 
      optionFilterProp: 'label',
      resultField: 'data',
      labelField: 'name',
      valueField: 'id',
    },
    colProps: {
      span: 8,
    },
  },

  {
    field: 'queryBegin',
    label: '开始时间',
    component: 'MonthPicker',
    colProps: {
      span: 4,
    },
  },
   {
    field: 'queryEnd',
    label: '结束时间',
    component: 'MonthPicker',
    colProps: {
      span: 4,
    },
  },
  
];


export interface GrowCardItem {
  icon: string;
  title: string;
  value: number;
}


